package com.example.demo.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author 京平笙
 * @since 2021-12-06
 */
public class Cart extends Model<Cart> implements Serializable {

    private static final long serialVersionUID = 1L;

	/**
	 * 订单编号
	 */
	@TableId(value = "cid",type = IdType.INPUT)
	private Integer cid;

	/**
	 * 用户编号
	 */
	private Integer uid;

	/**
	 * 商品编号
	 */
	private Integer pid;

	/**
	 * 订单数量
	 */
	private Integer camount;



	public Integer getCid() {
		return cid;
	}

	public void setCid(Integer cid) {
		this.cid = cid;
	}

	public Integer getUid() {
		return uid;
	}

	public void setUid(Integer uid) {
		this.uid = uid;
	}

	public Integer getPid() {
		return pid;
	}

	public void setPid(Integer pid) {
		this.pid = pid;
	}

	public Integer getCamount() {
		return camount;
	}

	public void setCamount(Integer camount) {
		this.camount = camount;
	}

	@Override
	public String toString() {
		return "Cart{" +
				"cid=" + cid +
				", uid=" + uid +
				", pid=" + pid +
				", camount=" + camount +
				'}';
	}
}
